package com.xdf.docmanagementsystem.config;

import org.apache.shiro.authc.AuthenticationToken;

/**
 * @program: doc-management-system
 * @description: Token
 * @author: Zhang
 * @create: 2020-06-25 20:09
 **/
public class JWTToken implements AuthenticationToken {

    private String token;

    public JWTToken(String token) {
        this.token = token;
    }

    @Override
    public Object getPrincipal() {
        return token;
    }

    @Override
    public Object getCredentials() {
        return token;
    }
}
